<template>
  <div class="m-header">
    <div class="header-title">
      <div class="corver">
        <slot name="icon" />
        <span class="title">
          {{ title }}
        </span>
        <span class="notify-alert">
          <slot />
        </span>
      </div>
    </div>
    <div class="options">
      <slot name="options"></slot>
    </div>
  </div>
</template>
<script>
export default {
  name: 'MHeader',
  props: {
    title: {
      default: '',
      type: String,
    },
  },
};
</script>
<style lang="less">
.m-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  border-bottom: 1px solid @cutOffRuleColor;
  .header-title {
    box-sizing: border-box;
    height: 54px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    .corver {
      height: 54px;
      display: flex;
      align-items: center;
      .title {
        font-size: 16px;
        color: @titleTextColor;
        letter-spacing: 0;
        margin-left: 10px;
        font-weight: @bolderFontWeight;
      }
      .notify-alert {
        color: @loseColor;
        font-size: 14px;
        margin-left: 10px;
      }
    }
  }
}
</style>
